//
//  AjenKit.h
//  AjenKit
//
//  Created by Ajen on 2017/8/31.
//  Copyright © 2017年 中国·北京·洵. All rights reserved.
//
//
//                       .::::.
//                     .::::::::.
//                    ::::Ajen:::
//                 ..:::::::::::'
//              '::::::::::::'
//                .::::::::::
//           '::::::::::::::..
//                 .::::::::::::.
//                ::::::::::::::::
//               ::::``:::::::::'        .:::.
//              ::::'   ':::::'       .::::::::.
//            .::::'      ::::     .:::::::'::::.
//           .:::'       :::::  .:::::::::' ':::::.
//          .::'        :::::.:::::::::'      ':::::.
//         .::'         ::::::::::::::'         ``::::.
//     ...:::           ::::::::::::'              ``::.
//    ````              ':::::::::'                  ::::..
//                       '.:::::'                    ':'````..
//  [······HeaderFile······]
//

#ifndef AjenKit_h
#define AjenKit_h

#import "AjenView.h"
#import "AjenObject.h"
#import "AjenController.h"


#ifdef DEBUG
#define AJLog(FORMAT, ...) fprintf(stderr,"📋 %s : %d 📋\n%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define AJLog(FORMAT, ...)
#endif

#define WeakObj(o) __weak typeof(o) weak_##o = o;

#define SongKeFont(s) [UIFont fontWithName:@"ziyuesongkebenjianti" size:(s)]

#define STATUS_BAR_HEIGHT [[UIApplication sharedApplication] statusBarFrame].size.height

#define STATUS_BAR_NAV_HEIGHT ([[UIApplication sharedApplication] statusBarFrame].size.height +44)

#define SCREEN_WIDTH   [UIScreen mainScreen].bounds.size.width

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define SCREEN_SIZE [UIScreen mainScreen].bounds.size

#define SCREEN_SCALE [UIScreen mainScreen].scale

#define SELFWIDTH self.view.frame.size.width

#define SELFHEIGHT self.view.frame.size.height

#define kWindow [UIApplication sharedApplication].keyWindow

#define ShowTextHUD(text) MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:kWindow animated:YES];\
hud.mode = MBProgressHUDModeText;\
hud.label.textColor = [UIColor whiteColor];\
hud.bezelView.backgroundColor = [UIColor blackColor];\
hud.labelText = (text);\
hud.margin = 25.f;\
hud.yOffset = 100.f;\
hud.removeFromSuperViewOnHide = YES;\
[hud hide:YES afterDelay:1];\

#endif /* AjenKit_h */
